<template>
  <view class="container">
    <!-- 返回按钮 -->
    <view class="back-btn" @click="goBack">返回</view>

    <!-- WebView 页面 预览简历-->
    <web-view :src="fileUrl"></web-view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      fileUrl: '',
	  state:"",
    };
  },
  onLoad(options) {
    this.fileUrl = decodeURIComponent(options.fileUrl); // 获取 URL 参数
  },
  methods: {
    goBack() {
      // 使用 uni.navigateBack 返回
      uni.navigateBack();
    }
  }
};
</script>

<style scoped>
.container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.back-btn {
  position: fixed;
  top: 10rpx;
  left: 10rpx;
  background-color: #fff;
  padding: 10rpx;
  border-radius: 5rpx;
  box-shadow: 0 2rpx 5rpx rgba(0, 0, 0, 0.2);
  z-index: 10;
  cursor: pointer;
}
</style>
